package com.cjm.one.system.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cjm.one.model.base.BaseDeleteMoreVo;
import com.cjm.one.model.base.BaseEnum;
import com.cjm.one.model.system.dto.SysRoleDto;
import com.cjm.one.model.system.entity.SysRole;
import com.cjm.one.model.system.vo.RoleDetailVO;

import java.util.List;

/**
* @author 29289
* @description 针对表【sys_role(角色表)】的数据库操作Service
* @createDate 2024-09-05 16:21:14
*/
public interface SysRoleService extends IService<SysRole> {
    //查询全部角色
    List<SysRole> getAllRoleList();

    Page<SysRole> getRolePage(Page<SysRole> page, SysRoleDto sysRoleDto);

    Boolean updateRole(RoleDetailVO sysRole);


    Boolean addSysRole(RoleDetailVO sysRole);

    Boolean deleteById(Long id);

    Boolean updateStatus(SysRole sysRole);

    BaseDeleteMoreVo removeBySysRoleIds(List<Long> ids);

    RoleDetailVO selectRoleDetail(Long id);
}
